package edu.suda.xsap.service.impl;

import edu.suda.xsap.dto.EmployeeCourseDto;
import edu.suda.xsap.dto.convert.EmployeeConvert;
import edu.suda.xsap.dto.convert.EmployeeCourseConvert;
import edu.suda.xsap.mapper.EmployeeCourseMapper;
import edu.suda.xsap.service.EmployeeCourseService;
import edu.suda.xsapadminutils.common.Result;
import edu.suda.xsapadminvo.EmployeeCourseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeCourseServiceImpl implements EmployeeCourseService {
    @Autowired
    private EmployeeCourseMapper employeeCourseMapper;
    @Autowired
    private EmployeeCourseConvert employeeCourseConvert;
    @Override
    public Result save(EmployeeCourseVO employeeCourseVO) {
        employeeCourseMapper.save(employeeCourseVO);
        return Result.success();
    }

    @Override
    public List<EmployeeCourseDto> findAll() {
        return employeeCourseMapper.findAll();
    }
}
